package com.trg.designmodel.prototype.trad;

/**
 * @ClassName: Client
 * @Description:    克隆羊问题---传统的解决方式
 * @Author: tangrg
 * @Date: 2021/7/2 9:23
 * @Version: 1.0
 * @Return:
 **/
public class Client {

    public static void main(String[] args) {
        Sheep sheep = new Sheep("TOM", 1, "white");
        Sheep sheep1 = new Sheep(sheep.getNeme(), sheep.getAge(), sheep.getColor());
        Sheep sheep2 = new Sheep(sheep.getNeme(), sheep.getAge(), sheep.getColor());
        Sheep sheep3 = new Sheep(sheep.getNeme(), sheep.getAge(), sheep.getColor());
        System.out.println(sheep);
        System.out.println(sheep1);
        System.out.println(sheep2);
        System.out.println(sheep3);
    }
}
